package com.xjoyt.pay.master.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Query;

import com.xjoyt.pay.master.po.MerchantCashRate;
import com.xjoyt.pay.repository.Repository;

public interface MerchantCashRateRepository extends Repository<MerchantCashRate> {

	@Query(" select a from MerchantCashRate a where a.merchant.id in ?1 ")
	List<MerchantCashRate> findAllByMerchantIdIn(List<String> ids);

	@Query(" select a from MerchantCashRate a where a.merchant.id = ?1 ")
	List<MerchantCashRate> findAllByMerchantId(String merchantId);

}
